LGF_CountBooleanEdges (FB / V1.0.0)


Author: Siemens Simatic Systems Support

Short description

This function evaluates a input signal for different states in a certain amount of time.

The states are:

The Output signal is present for at least on cycle after the monitoring time has expired, or as long as the input trigger remains TRUE.

Block Interface

LGF_CountBooleanEdges (FB)
Bool  trigger single  Bool
    
Time  monitorTime double  Bool
    
   long  Bool
    
   severalEdges  Bool
    
   noOfEdges  USInt
    
   

Input parameter

IdentifierData typeDefault valueDescription
triggerBoolFALSETrigger to evaluate signal signal (rising edges)
monitorTimeTimeT#1sTime to monitor fand count edges on `trigger` input

Output parameter

IdentifierData typeDescription
singleBoolSingle edge until monitoring time expires
doubleBoolTwo edges in between the monitoring time
longBoolJust a single edge in the monitoring time, the `trigger` input stays TRUE after the edge appears
severalEdgesBoolNumeros Edges occure within the monitoring time, see `noOfEdges` to get the number of edges
noOfEdgesUSIntNumber of edges in between the monitoring time frame

Change log

Version & DateChange description
01.00.00Simatic Systems Support
19.01.2021First released version